/**
 * Copyright (C), 2015-2019, XXX有限公司
 * FileName: ConfigureManager
 * Author:   步步为莹
 * Date:     2019/8/17 20:46
 * Description: 数据库解析类
 * History:
 */
package cn.beyond.vehicleManagement.util;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

/**
 * 〈数据库解析类〉<br> 
 * 〈一句话功能简述〉
 *
 * @author 步步为莹
 * @create 2019/8/17
 * @since 1.0.0
 */
public class ConfigureManager {
    //单例模式饿汉式实现数据库连接
    private ConfigureManager(){};
    private static final Properties properties=new Properties();
    static {
        InputStream is=ConfigureManager.class.getClassLoader()
                .getResourceAsStream("database.properties");
        try {
            properties.load(is);
        } catch (IOException e) {
            e.printStackTrace();
        }

    }

    public static String getProperty(String key){
     return    properties.getProperty(key);
    }

}